<?$this->load->view('admin/header');?>
<!-- Content Area -->
<div id="middlepart">
    <!-- Left column -->
    <div id="leftcolumn">
        <h1>Site Management</h1>

        <?=form_open($this->uri->uri_string(), array('name'=>'site_form'));?>

        <?$this->load->view('admin/system_messages');?>

        <div id="container-1">
            <ul>
                <li><a href="#fragment-7"><span>Site</span></a></li>
                <li><a href="#" onclick="document.site_form.submit();"><span>Save This Site</span></a></li>
            </ul>
            <div id="fragment-7">

                <label>Site Name: </label>
                <input type="text" class="medium" name="site_name" value="<?=$this->validation->site_name;?>" />

                <br />

                <label>Site Description: </label>
                <input type="text" class="medium" name="site_description" value="<?=$this->validation->site_description;?>" />

                <br />

                <label>Template Folder: </label>
                <select name="template_folder" >
                    <?if (!$this->validation->template_folder) {?>
                    <option selected></option>
                    <?}?>
                    <?foreach ($this->mdl_templates->get() as $template_folder) {?>
                    <option value="<?=$template_folder;?>" <?if ($this->validation->template_folder == $template_folder) {?>selected<?}?>><?=$template_folder;?></option>
                    <?}?>
                </select>

                <br />

                <label>Default View: </label>
                <input type="text" class="medium" name="template_default_view" value="<?=$this->validation->template_default_view;?>" />

                <br />

                <label ></label>
                <a class="submit" href="#" onclick="document.site_form.submit();">submit</a> <a class="reset" href="#">cancel</a>

            </div>

        </div>

        </form>

        <br />
    </div>
    <!-- Left Column -->

</div>
<!-- Content -->

<?$this->load->view('admin/footer');?>